package com.le.tester.onjava8.l1_17_1;

/**
 * createTime：2022/11/25 15:03
 * description：正常的里氏替换原则,类的继承这边不遵循里氏替换原则
 */

interface LifeForm {
    String move();

    String react();
}

class Worm implements LifeForm {

    @Override
    public String move() {
        return "Worm::move()";
    }

    @Override
    public String react() {
        return "Worm::react()";
    }
}

class Giraffe implements LifeForm {

    @Override
    public String move() {
        return "Giraffe::move()";
    }

    @Override
    public String react() {
        return "Giraffe::react()";
    }
}

public class NormalLiskov {
}
